package com.huatai.datacenter.controller.test;

import cn.hutool.core.date.DateTime;
import com.huatai.datacenter.controller.test.dto.*;
import com.huatai.datacenter.controller.test.entity.FireBrigadeRegistrationDataSheet;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * packageName com.huatai.datacenter.controller.test
 *
 * @author gaowengui
 * @version JDK 8
 * @className SimulatefSystemController  模拟系统AB数据接入
 * @date 2025/6/17
 * @description TODO
 */
@RestController
@RequestMapping("/simulate/system")
@Api(tags = "模拟系统AB数据接入",value = "模拟系统AB数据接入")
public class SimulatefSystemController {

    @GetMapping("/three/meetingB")
    @ApiOperation("三重一大会议记录表（B）")//表名tb_simulatesystem_three_mettingB
    public List<ThressWeightMeetingDTO> acceptThressWeightMeeting() {
        List<ThressWeightMeetingDTO> list = new ArrayList<>();
        ThressWeightMeetingDTO thressWeightMeeting = new ThressWeightMeetingDTO("meeting-1","防火处专项工作督查督办会","309","防火处","齐峰","全部通过",new DateTime("2025-5-31 10:30:00"),new DateTime("2025-5-31 11:50:41"));
        list.add(thressWeightMeeting);
        return list;
    }

    @GetMapping("/team/quantization")
    @ApiOperation("队伍量化考评表（B）")//表名tb_simulatesystem_team_quantization_evaB
    public List<TeamQuantizationEvaluationDTO> acceptTeamQuantizationEvaluation() {
        List<TeamQuantizationEvaluationDTO> list = new ArrayList<>();
        TeamQuantizationEvaluationDTO teamQuantizationEvaluation = new TeamQuantizationEvaluationDTO("lhkp-1", "5月队伍量化考评", "齐峰", "防火处", new DateTime("2025-5-31"), "94");
        list.add(teamQuantizationEvaluation);
        return list;
    }

    @GetMapping("/performance/evaluation")//表名tb_simulatesystem_performance_evaluationB"
    @ApiOperation(tags = "干部绩效考评记录表（B）",value = "干部绩效考评记录表（B）")
    public List<PerformanceEevaluationCadresDTO> gacceptPerformanceEevaluationCadres(){
        List<PerformanceEevaluationCadresDTO> list = new ArrayList<>();
        PerformanceEevaluationCadresDTO performanceEevaluationCadres = new PerformanceEevaluationCadresDTO("gbjx-1", "5月干部绩效考评", "齐峰", "防火处", new DateTime("2025-5-31"), "91");
        list.add(performanceEevaluationCadres);
        return list;
    }
    @GetMapping("/redgate/politics")//表名tb_simulatesystem_redgate_politicsB
    @ApiOperation("红门政教考评记录（B）")
    public List<RedGatePoliticsDTO> acceptRedGatePolitics(){
        List<RedGatePoliticsDTO> list = new ArrayList<>();
        RedGatePoliticsDTO redGatePolitics = new RedGatePoliticsDTO("hmzj-1", "党建政治教育考评", "齐峰", "防火处", new DateTime("2025-5-5"), "96");
        list.add(redGatePolitics);
        return list;
    }

    @GetMapping("/FireBrigade/Plan")//tb_simulatesystem_firebrigade_PlanB
    @ApiOperation(tags = "消防队伍预案表（B）",value = "消防队伍预案表（B）")
    public List<FireBrigadePlanFormDTO> acceptFireBrigadePlanFormDTO(){
        List<FireBrigadePlanFormDTO> list = new ArrayList<>();
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO = new FireBrigadePlanFormDTO("team-1", "特勤大队", 6, 5);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO1 = new FireBrigadePlanFormDTO("team-2", "观山湖大队", 20, 8);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO2 = new FireBrigadePlanFormDTO("team-3", "南明大队", 20, 15);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO3 = new FireBrigadePlanFormDTO("team-4", "花溪大队", 20, 2);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO4 = new FireBrigadePlanFormDTO("team-5", "云岩大队", 20, 12);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO5 = new FireBrigadePlanFormDTO("team-6", "白云大队", 20, 10);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO6 = new FireBrigadePlanFormDTO("team-7", "乌当大队", 20, 11);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO7 = new FireBrigadePlanFormDTO("team-8", "经开大队", 20, 15);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO8 = new FireBrigadePlanFormDTO("team-9", "清镇大队", 20, 14);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO9 = new FireBrigadePlanFormDTO("team-10", "修文大队", 20, 11);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO10 = new FireBrigadePlanFormDTO("team-11", "息烽大队", 20, 12);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO11 = new FireBrigadePlanFormDTO("team-12", "开阳大队", 20, 5);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO12 = new FireBrigadePlanFormDTO("team-13", "司令部",null, null);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO13 = new FireBrigadePlanFormDTO("team-14", "后勤处",null, null);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO14 = new FireBrigadePlanFormDTO("team-15", "防火处",null, null);
        FireBrigadePlanFormDTO fireBrigadePlanFormDTO15 = new FireBrigadePlanFormDTO("team-16", "政治处",null, null);
        list.add(fireBrigadePlanFormDTO);
        list.add(fireBrigadePlanFormDTO1);
        list.add(fireBrigadePlanFormDTO2);
        list.add(fireBrigadePlanFormDTO3);
        list.add(fireBrigadePlanFormDTO4);
        list.add(fireBrigadePlanFormDTO5);
        list.add(fireBrigadePlanFormDTO6);
        list.add(fireBrigadePlanFormDTO7);
        list.add(fireBrigadePlanFormDTO8);
        list.add(fireBrigadePlanFormDTO9);
        list.add(fireBrigadePlanFormDTO10);
        list.add(fireBrigadePlanFormDTO11);
        list.add(fireBrigadePlanFormDTO12);
        list.add(fireBrigadePlanFormDTO13);
        list.add(fireBrigadePlanFormDTO14);
        list.add(fireBrigadePlanFormDTO15);
        return list;
    }

    @GetMapping("/FireBrigadeSheet")
    @ApiOperation(tags = "消防队伍登记（B）",value = "消防队伍登记（B）")
    public List<FireBrigadeRegistrationDataSheet> getFireBrigadeRegistrationDataSheet() {
        List<FireBrigadeRegistrationDataSheet> list = new ArrayList<>();
        list.add(new FireBrigadeRegistrationDataSheet("team-1", "特勤大队", 10, 10, 4, 1, 1));
        list.add(new FireBrigadeRegistrationDataSheet("team-2", "观山湖大队", 25, 25, 5, 2, 2));
        list.add(new FireBrigadeRegistrationDataSheet("team-3", "南明大队", 6, 6, 1, 0, 1));
        list.add(new FireBrigadeRegistrationDataSheet("team-4", "花溪大队", 0, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-5", "云岩大队", 8, 8, 3, 1, 2));
        list.add(new FireBrigadeRegistrationDataSheet("team-6", "白云大队", 0, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-7", "乌当大队", 0, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-8", "经开大队", 0, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-9", "清镇大队", 0, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-10", "修文大队", 0, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-11", "息烽大队", 0, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-12", "开阳大队", 0, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-13", "司令部", 24, 0, 5, 2, 3));
        list.add(new FireBrigadeRegistrationDataSheet("team-14", "后勤处", 36, 0, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-15", "防火处", 28, 36, 0, 0, 0));
        list.add(new FireBrigadeRegistrationDataSheet("team-16", "政治处", 25, 0, 0, 0, 0));
        return list;
    }

}
